/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const adjustRouter = {
  path: '/views/adjustmentMemo',
  component: Layout,
  //当设置 noRedirect 的时候该路由在面包屑导航中不可被点击
  redirect: 'noRedirect',
  // alwaysShow: true, //一直显示根路由
  name: 'adjustmentMemo',
  meta: {
    title: '调整单',
    icon: 'adjust',
    roles: ['admin', 'user']
  }, //你可以在根路由设置权限，这样它下面所有的子路由都继承了这个权限
  children: [
    {
      path: '/views/adjustmentMemo/adjustmentBill',
      component: () => import('@/views/adjustmentMemo/adjustmentBill/index'),
      //当设置 noRedirect 的时候该路由在面包屑导航中不可被点击
      redirect: 'noRedirect',
      // alwaysShow: true, //一直显示根路由
      meta: {
        title: '单据',
        roles: ['admin', 'user']
      }, //你可以在根路由设置权限，这样它下面所有的子路由都继承了这个权限
      children: [{
          path: '/views/adjustmentMemo/adjustmentBill/billInventoryAdjustment',
          component: () => import('@/views/adjustmentMemo/adjustmentBill/billInventoryAdjustment'), // 库存调整单
          name: 'billInventoryAdjustment',
          meta: {
            title: '库存调整单',
            roles: ['admin', 'user']
          }
        },
        {
          path: '/views/adjustmentMemo/adjustmentBill/billIncreaseInFunds',
          component: () => import('@/views/adjustmentMemo/adjustmentBill/billIncreaseInFunds'), // 资金增加
          name: 'billIncreaseInFunds',
          meta: {
            title: '资金增加',
            roles: ['admin', 'user']
          }
        },
        {
          path: '/views/adjustmentMemo/adjustmentBill/billDecreaseInFunds',
          component: () => import('@/views/adjustmentMemo/adjustmentBill/billDecreaseInFunds'), // 资金减少
          name: 'billDecreaseInFunds',
          meta: {
            title: '资金减少',
            roles: ['admin', 'user']
          }
        },
        {
          path: '/views/adjustmentMemo/adjustmentBill/billIncreaseInReceivables',
          component: () => import('@/views/adjustmentMemo/adjustmentBill/billIncreaseInReceivables'), // 应收款增加
          name: 'billIncreaseInReceivables',
          meta: {
            title: '应收款增加',
            roles: ['admin', 'user']
          }
        },
        {
          path: '/views/adjustmentMemo/adjustmentBill/billDecreaseInReceivables',
          component: () => import('@/views/adjustmentMemo/adjustmentBill/billDecreaseInReceivables'), // 应收款减少
          name: 'billDecreaseInReceivables',
          meta: {
            title: '应收款减少',
            roles: ['admin', 'user']
          }
        },
        {
          path: '/views/adjustmentMemo/adjustmentBill/billIncreaseInPayable',
          component: () => import('@/views/adjustmentMemo/adjustmentBill/billIncreaseInPayable'), // 应付款增加
          name: 'billIncreaseInPayable',
          meta: {
            title: '应付款增加',
            roles: ['admin', 'user']
          }
        },
        {
          path: '/views/adjustmentMemo/adjustmentBill/billDecreaseInPayable',
          component: () => import('@/views/adjustmentMemo/adjustmentBill/billDecreaseInPayable'), // 应付款减少
          name: 'billDecreaseInPayable',
          meta: {
            title: '应付款减少',
            roles: ['admin', 'user']
          }
        },
      ]
    },
    {
      path: '/views/adjustmentMemo/adjustmentRecord',
      component: () => import('@/views/adjustmentMemo/adjustmentRecord/index'),
      //当设置 noRedirect 的时候该路由在面包屑导航中不可被点击
      redirect: 'noRedirect',
      // alwaysShow: true, //一直显示根路由
      meta: {
        title: '记录',
        roles: ['admin', 'user']
      }, //你可以在根路由设置权限，这样它下面所有的子路由都继承了这个权限
      children: [{
          path: '/views/adjustmentMemo/adjustmentRecord/inventoryAdjustment',
          component: () => import('@/views/adjustmentMemo/adjustmentRecord/inventoryAdjustment'), // 库存调整记录
          name: 'inventoryAdjustment',
          meta: {
            title: '库存调整记录',
            roles: ['admin', 'user']
          }
        },
        {
          path: '/views/adjustmentMemo/adjustmentRecord/fundAdjustment',
          component: () => import('@/views/adjustmentMemo/adjustmentRecord/fundAdjustment'), // 资金调整记录
          name: 'fundAdjustment',
          meta: {
            title: '资金调整记录',
            roles: ['admin', 'user']
          }
        },
        {
          path: '/views/adjustmentMemo/adjustmentRecord/payableAdjustment',
          component: () => import('@/views/adjustmentMemo/adjustmentRecord/payableAdjustment'), // 应收应付调整记录
          name: 'payableAdjustment',
          meta: {
            title: '应收应付调整记录',
            roles: ['admin', 'user']
          }
        },
      ]
    },
  ]
}
export default adjustRouter
